import 'dart:convert';

import 'package:orginone/dart/base/model.dart';

/// 解析头像
var parseAvatar = (String? avatar) {
  if (avatar != null && avatar != '') {
    try {
      return FileItemShare.fromJson(jsonDecode(avatar));
    } catch (error) {
      return null;
    }
  }
  return null;
};
var orginoneAvatar = () {
  return FileItemShare(
    size: 195260,
    name: 'logo3.jpg',
    extension: '.jpg',
    shareLink:
        'p2_llrgzcgn-2hu-2lgzzhaz2nl-_hc2lsontwk8tenvwxe-lhoe2gi6lpmj-gqyk9orts9zfyxptzxlxfxwks9zvst9uybgrpnrxwo2ztfzvhazd',
    thumbnail:
        '',
  );
};
